package parkshop.pmcourse.mapping;

import java.util.List;

import parkshop.pmcourse.domain.Customer;
import parkshop.pmcourse.dto.PageBean;

public interface CustomerMapper {
	
	Customer selectByPrimaryKey(Long id);
	int insertSelective(Customer customer);
	Customer selectByName(String name);
	int updateByPrimaryKeySelective(Customer customer);
	int deleteByPrimaryKey(Long id);
	int deleteByName(String name); 
	
	List<Customer> selectTenCustomer(PageBean pageBean);
	List<Customer> selectCustomerByNotExactName(PageBean pageBean);
	int selectSum();

	Customer getCustomerByActiveCode(String code);
	int updateCustomerByActiveCode(Customer customer);
}
